import React from 'react';
import { Funnel } from '@ant-design/charts';
const FunnelChart = () => {
    var data = [
        {
            stage: '仅有下线',
            number: 875,
        },
        {
            stage: '仅有二级',
            number: 326,
        },
        {
            stage: '超出二级',
            number: 124,
        },
    ];
    var config = {
        data: data,
        xField: 'stage',
        yField: 'number',
        legend: false,
        color: ['#784af6', '#936ef8', '#ae92fa'],
        label: {
            style: {
              fill: '#000000',
              opacity: 0.6,
              fontSize: 12,
            },
            offsetX: -95,
            
        },
    };
    return <Funnel {...config}/>;
};
export default FunnelChart;